package com.spzx.test1.canguan;
/*
    并非全力
*/

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

public class test {



    public static void main(String[] args) {
        CookRoom room = new CookRoom();

        new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                room.cut();

                System.out.println("切菜第" + i + "道 -完成");
            }
        }, "切菜大师傅").start();



        new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                room.cook();
                System.out.println("炒菜第" + i + "道 -完成");
            }
        }, "炒菜大师傅").start();



        new Thread(() -> {
            for (int i = 0; i < 10; i++) {
                room.Lock();
                System.out.println("端菜第" + i + "道 -完成");
            }
        }, "端菜大师傅").start();
    }
}
